package com.blue.eagle.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "CUSTOMERS")
public class Customer implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * @uml.property  name="id"
	 */
	private Long id ;
	
	/**
	 * @uml.property  name="firstName"
	 */
	private String firstName;
	
	/**
	 * @uml.property  name="lastName"
	 */
	private String lastName;
	
	/**
	 * @uml.property  name="mobileNumber"
	 */
	private String mobileNumber;
	
	/**
	 * @uml.property  name="userName"
	 */
	private String userName;
	
	/**
	 * @uml.property  name="password"
	 */
	private String password;
	
	/**
	 * setId as primary key
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	
	/**
	 * @param id
	 * @uml.property  name="id"
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @return
	 * @uml.property  name="firstName"
	 */
	@Column(name = "FIRST_NAME",length = 50)
	public String getFirstName() {
		return firstName;
	}
	/**
	 * @param firstName
	 * @uml.property  name="firstName"
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	
	/**
	 * @return
	 * @uml.property  name="lastName"
	 */
	@Column(name = "LAST_NAME",length = 50)
	public String getLastName() {
		return lastName;
	}
	/**
	 * @param lastName
	 * @uml.property  name="lastName"
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	/**
	 * @return
	 * @uml.property  name="mobileNumber"
	 */
	@Column(name = "MOBILE_NUMBER",length = 20)
	public String getMobileNumber() {
		return mobileNumber;
	}
	/**
	 * @param mobileNumber
	 * @uml.property  name="mobileNumber"
	 */
	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}
	
	/**
	 * @return
	 * @uml.property  name="userName"
	 */
	@Column(name = "USER_NAME",length = 20)
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 * @uml.property  name="userName"
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * @return
	 * @uml.property  name="password"
	 */
	@Column(name = "PASSWORD",length = 20)
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 * @uml.property  name="password"
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
